import request from "@/utils/request";

//admin权限级别接口
/**
 * 添加itemSample,供Admin使用
 */
export function addItemSample(row) {
  return request({
    url: "/sku_samples",
    method: "post",
    data: row
  });
}
/**
 * 查询itemSample分页,供后台使用
 */
export function getItemSampleByPage(pageVo) {
  return request({
    url: "/sku_samples/search",
    method: "post",
    data: pageVo
  });
}
/**
 * 根据id主键获取单条记录
 */
export function getItemSample(id) {
  return request({
    url: "/sku_samples/" + id
  });
}

/**
 * 根据主键id更新指定行的数据
 */
export function updateItemSampleById(row) {
  return request({
    url: "/sku_samples/" + row.id,
    method: "put",
    data: row
  });
}
/**
 * // 根据id主键删除单条记录
 */
export function removeItemSampleById(id) {
  return request({
    url: "/sku_samples/" + id,
    method: "delete"
  });
}
